import Vue from 'vue'
import Router from 'vue-router'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'HelloWorld',
      component: _ => import(/* webpackChunkName: 'HelloWorld' */ '@/components/HelloWorld')
    },
    {
      path: '/home',
      name: 'Home',
      component: _ => import(/* webpackChunkName: 'home' */ '@/pages/Home')
    }, {
      path: '/todos',
      name: 'Todos',
      component: _ => import(/* webpackChunkName: 'todo' */ '@/pages/Todos')
    }
  ]
})
